how to find the order of a matrix